var mongoose=require("mongoose");
var db=mongoose.createConnection("mongodb://localhost:27017/data");

db.once("open",function(err,result){
    console.log("数据库成功连接");
})

module.exports=db;